<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>工具页面</title>
        <link href="../Public/images/style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="__ROOT__/Public/Css/linktips.css" type="text/css" />
        <script type="text/javascript" src="__ROOT__/Public/Js/jquery.js"></script>
 
        <script type="text/javascript" src="__ROOT__/Public/Js/linktips.js"></script>
    </head>
    <body>
        <switch name="dsp">
            <case value="cache">
                <form name="cacheform" method="post" action="__URL__/clear">
                    <table border="0" cellspacing="1" class="tb-a" width="100%">
                        <tr>
                            <th colspan="4" style="font-weight:normal">更新缓存的时候，可能让服务器负载升高，请尽量避开访问的高峰时间</th>
                        </tr>
                        <tr>
                            <td width="30"><input name="id[]" type="checkbox" id="id[]" value="cache" /></td>
                            <td>模板缓存</td>
                            <td width="30"><input name="id[]" type="checkbox" id="id[]" value="temp" /></td>
                            <td>数据缓存</td>
                        </tr>
                        <tr>
                            <td><input name="id[]" type="checkbox" id="id[]" value="data" /></td>
                            <td>数据目录</td>
                            <td><input name="id[]" type="checkbox" id="id[]" value="log" /></td>
                            <td>日志文件</td>
                        </tr>
                        <tr>
                            <td><input name="id[]" type="checkbox" id="id[]" value="runtime" /></td>
                            <td>核心缓存文件</td>
                            <td><input name="id[]" type="checkbox" id="id[]" value="app" /></td>
                            <td>项目编译缓存文件</td>
                        </tr>
                        <tr>
                            <td><input name="checkbox" type="checkbox"  onClick="selAll(this)" /></td><td colspan="3">全部更新</td>
                        </tr>
                    </table>
                    <div align="center"><input type="submit" value="提交"  /></div>
                </form>
            </case>
            <case value="modify">
                <form name="modifyform" method="post" action="__URL__/modifys">
                    <table border="0" cellspacing="1" >
                        <tr>
                            <th>电子邮箱</th>
                            <td>{$email}<input type="hidden" name="id" value="{$id}" /></td>
                        </tr>
                        <tr>
                            <th>当前密码</th>
                            <td><input type="password" name="opassword" value=""  /></td>
                        </tr>
                        <tr>
                            <th>新密码</th>
                            <td><input type="password" name="npassword" value=""  /></td>
                        </tr>

                        <tr>
                            <th>创建时间</th>
                            <td>{$createtime|date="Y-n-j H:i:s",###}</td>
                        </tr>
                        <tr>
                            <th>最后登陆</th>
                            <td>{$lastlogintime|date="Y-n-j H:i:s",###}</td>
                        </tr>
                    </table>
                    <div align="center"><input type="submit" value="提交"  /></div>
                </form>
            </case>
            <case value="navigation">
                <form name="navform" method="post" action="__URL__/navigation/act/add">
                    <table border="0" cellspacing="1" class="tb-c t_c">
                        <tr>
                            <td>名称</td>
                            <td><input type="text" name="name" value=""  class="input-c" /></td>
                            <td>链接</td>
                            <td><input type="text" name="url" value="http://"  class="input-c" /></td>
                            <td>排序</td>
                            <td width="60"><input type="text" name="orders" value=""  class="input-c" /></td>
                            <th><a href="#" onclick="javascript:document.navform.submit()" class="link-a">添加</a></th>
                        </tr>
                    </table>
                </form>
                <table border="0" cellspacing="1"  width="100%">
                    <tr>
                        <th width="60">排序</th>
                        <th>名称</th>
                        <th>链接</th>
                        <th width="150">操作</th>
                    </tr>
                    <volist name="navigation" id="ng">
                        <form name="navfrom{$ng.ngid}" method="post" action="__URL__/navigation/act/edit">
                            <tr>
                                <td><input type="hidden" name="ngid" value="{$ng.ngid}" /><input type="text" name="orders" value="{$ng.orders}"  class="input-c t_c" /></td>
                                <td><input type="text" name="name" value="{$ng.name}"  class="input-c" /></td>
                                <td><input type="text" name="url" value="{$ng.url}"  class="input-c" /></td>
                                <td>
                                    <input type="submit" value="修改" class="input-btn-d" />
                                    <a href="__URL__/navigation/act/delete/id/{$ng.ngid}"><input type="button" value="删除" class="input-btn-d" /></a>
                                </td>
                            </tr>
                        </form>
                    </volist>
                </table>
            </case>
            <default />
        </switch>
    </body>
</html>